import request from '@/utils/request'
 
export function list(query) {
  return request({
    url: '/flowable/task/list',
    method: 'get',
    params: query
  })
}
export function listTodo(query) {
  return request({
    url: '/flowable/task/listTodo',
    method: 'get',
    params: query
  })
}

export function listToRead(query) {
  return request({
    url: '/flowable/task/listToRead',
    method: 'get',
    params: query
  })
}
export function listDone(query) {
  return request({
    url: '/flowable/task/listDone',
    method: 'get',
    params: query
  })
}


export function executeTaskData(query) {
  return request({
    url: '/flowable/task/executeTaskData',
    method: 'get',
    params: query
  })
}

export function unclaim(query) {
  return request({
    url: '/flowable/task/unclaim',
    method: 'put',
    data: query
  })
}
export function claim(query) {
  return request({
    url: '/flowable/task/claim',
    method: 'put',
    data: query
  })
}
export function complete(query) {
  return request({
    url: '/flowable/task/complete',
    method: 'put',
    data: query
  })
}
export function stopProcessInstance(query) {
  return request({
    url: '/flowable/task/stopProcessInstance',
    method: 'put',
    data: query
  })
}

export function back(query) {
  return request({
    url: '/flowable/task/back',
    method: 'put',
    data: query
  })
}


export function backNodes(query) {
  return request({
    url: '/flowable/task/backNodes',
    method: 'get',
    params: query
  })
}

export function doAssign(query) {
  return request({
    url: '/flowable/task/assign',
    method: 'put',
    data: query
  })
}
export function doDelegate(query) {
  return request({
    url: '/flowable/task/delegate',
    method: 'put',
    data: query
  })
}

export function read(query) {
  return request({
    url: '/flowable/task/read',
    method: 'put',
    data: query
  })
}










